package com.shop.web.response;

/**
 * 全局通用错误码对象
 */
public enum RetEnum implements Ret {

    SUCCESS("10000", "成功!"),
    FAIL("10001", "失败!"),
    SYSTEM_EXCEPTION("10002", "系统异常!"),
    ERROR_PARAM("10003", "传入参数校验失败!"),
    ILLEGAL_REQUEST("10004", "非法请求!"),
    NEED_LOGIN("10005", "请重新登录!"),
    ALREADY_EXECUTE("10006", "该记录已执行!"),
    CHECK_SIGN_IS_FAIL("10007", "必填参数校验失败!");

    private String code;
    private String msg;

    RetEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }

}
